import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 12,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    viewBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '加注站名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '航道里程',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '岸别',
        prop: 'p3',
        search: true,
        dicData: [
          {label: '左岸', value: '1'},
          {label: '右岸', value: '2'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
      },
      {
        label: '联系人',
        prop: 'p4',
        hide: true
      },
      {
        label: '运营单位信息',
        prop: 'p5',
        hide: true
      },
      {
        label: '服务船舶信息',
        prop: 'p6',
        hide: true
      },
      {
        label: '泊位数量',
        prop: 'p7',
        search: false,
        overHidden: true,
      },
      {
        label: '位置',
        prop: 'p8',
        hide: true
      },
    ]
  }
}
